<template>
  <div>
      <table border="1px">
          <tr v-for="data in datas">
              <td>{{data.id}}</td>
              <td>{{data.name}}</td>
              <td>{{data.sale}}</td>
              <td>{{data.price}}</td>
              <td>{{data.date}}</td>
              <td>{{data.cate_id}}</td>
          </tr>
      </table>
  </div>
</template>

<script>
export default {
    name:'book_get',
    data(){
        return{
            datas:[]
        }
    },
    methods:{
        getdata(){
            this.axios.get('yt4/').then(res=>{
                this.datas=res.data
            })
        }
    },
    mounted(){
        this.getdata()
    }
}
</script>

<style>

</style>